<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->resource('auth/users', 'UserController')->names('admin.auth.users');
    $router->resource('auth/roles', 'RoleController')->names('admin.auth.roles');
    $router->resource('auth/permissions', 'PermissionController')->names('admin.auth.permissions');
    $router->resource('auth/logs', 'LogController', ['only' => ['index', 'destroy']])->names('admin.auth.logs');
    $router->resource('auth/menu', 'MenuController', ['except' => ['create']])->names('admin.auth.menu');

    $router->get('/', 'HomeController@index')->name('home');

    /***********************/
    /*//备货管理模块（新）
    $router->group(['prefix'=>'product-stockup'], function ($router) {
        //备货产品(总表)
        $router->post('stockup-ajax', 'ProductStockup\StockupController@ajax');
        $router->get('stockup-modal', 'ProductStockup\StockupController@modal');
        $router->get('stockup-download', 'ProductStockup\StockupController@download');//导出
        $router->resource('stockup', 'ProductStockup\StockupController', ['only' => ['index','edit','update','create','destroy']]);
        $router->get('stockup-template', 'ProductStockup\StockupUploadController@template');//下载模版
        $router->get('stockup-upload', 'ProductStockup\StockupUploadController@index');
        $router->post('stockup-upload', 'ProductStockup\StockupUploadController@upload');

        //备货申请(申请)
        $router->resource('stockup-apply', 'ProductStockup\StockupApplyController', ['only' => ['index','edit','update','create']]);
        //备货申请(审批)
        $router->resource('stockup-apply-audit', 'ProductStockup\StockupApplyAuditController', ['only' => ['index','edit','update','create']]);
        //备货申请(确认)
        $router->resource('stockup-apply-confirm', 'ProductStockup\StockupApplyConfirmController', ['only' => ['index','edit','update','create']]);

        //备货审批记录
        $router->get('stockup-log-download', 'ProductStockup\StockupLogController@download');//备货审批记录导出
        $router->resource('stockup-apply-log', 'ProductStockup\StockupApplyLogController', ['only' => ['index','edit','update','create']]);

        //sku装箱规格（数量）
        $router->resource('stockup-sku-packing-spec', 'ProductStockup\StockupSkuPackingSpecController', ['only' => ['index','edit','update','create','destroy']]);
        $router->get('stockup-sku-packing-spec-template', 'ProductStockup\StockupSkuPackingSpecUploadController@template');//下载模版
        $router->get('stockup-sku-packing-spec-upload', 'ProductStockup\StockupSkuPackingSpecUploadController@index');
        $router->post('stockup-sku-packing-spec-upload', 'ProductStockup\StockupSkuPackingSpecUploadController@upload');
    });

    //提货管理模块（新）
    $router->group(['prefix'=>'product-pickup'], function ($router) {

        //提货(总表)
        $router->post('pickup-ajax', 'ProductPickup\PickupController@ajax');
        $router->get('pickup-modal', 'ProductPickup\PickupController@modal');
        $router->get('pickup-download', 'ProductPickup\PickupController@download');//导出
        $router->resource('pickup', 'ProductPickup\PickupController', ['only' => ['index','edit','update','create']]);
        $router->get('pickup-template', 'ProductPickup\PickupUploadController@template');//下载模版
        $router->get('pickup-upload', 'ProductPickup\PickupUploadController@index');
        $router->post('pickup-upload', 'ProductPickup\PickupUploadController@upload');

        //提货产品
        $router->post('pickup-order-ajax', 'ProductPickup\PickupOrderController@ajax');
        $router->get('pickup-order-modal', 'ProductPickup\PickupOrderController@modal');
        $router->get('pickup-order-download', 'ProductPickup\PickupOrderController@download');//导出
        $router->resource('pickup-order', 'ProductPickup\PickupOrderController');
        $router->get('pickup-order-template', 'ProductPickup\PickupOrderUploadController@template');//下载模版
        $router->get('pickup-order-upload', 'ProductPickup\PickupOrderUploadController@index');
        $router->post('pickup-order-upload', 'ProductPickup\PickupOrderUploadController@upload');

        ////提货申请(审批)
        //$router->get('pickup-order-download', 'ProductPickup\PickupOrderController@download');//导出
        //$router->resource('pickup-order', 'ProductPickup\PickupOrderController', ['only' => ['index','update']]);
        //$router->get('pickup-order-template', 'ProductPickup\PickupOrderUploadController@template');//下载模版
        //$router->get('pickup-order-upload', 'ProductPickup\PickupOrderUploadController@index');
        //$router->post('pickup-order-upload', 'ProductPickup\PickupOrderUploadController@upload');

        //提货记录
        $router->get('pickup-order-log-download', 'ProductPickup\PickupOrderLogController@download');
        $router->resource('pickup-order-log', 'ProductPickup\PickupOrderLogController', ['only' => ['index','destroy']]);
    });*/
    /***********************/

    //Kol红人管理模块
    /*$router->group(['prefix'=>'kol-manage'], function ($router) {
        //kol红人
        $router->post('kol-ajax', 'KolManage\KolController@ajax');
        $router->get('kol-modal', 'KolManage\KolController@modal');
        $router->resource('kol',  'KolManage\KolController');
        $router->get('kol-download', 'KolManage\KolController@download');
        $router->get('kol-upload',  'KolManage\KolUploadController@index');//上传
        $router->post('kol-upload', 'KolManage\KolUploadController@upload');//上传
        $router->get('kol-template','KolManage\KolUploadController@template');//下载模版

        //kol红人sku
        $router->post('kol-sku-ajax', 'KolManage\KolSkuController@ajax');
        $router->get('kol-sku-modal', 'KolManage\KolSkuController@modal');
        $router->resource('kol-sku', 'KolManage\KolSkuController');
        $router->get('kol-sku-download', 'KolManage\KolSkuController@download');
        $router->get('kol-sku-upload', 'KolManage\KolSkuUploadController@index');//上传
        $router->post('kol-sku-upload', 'KolManage\KolSkuUploadController@upload');//上传
        $router->get('kol-sku-template','KolManage\KolSkuUploadController@template');//下载模版

        //kol红人视频
        $router->post('kol-video-ajax', 'KolManage\KolVideoController@ajax');
        $router->get('kol-video-modal', 'KolManage\KolVideoController@modal');
        $router->resource('kol-video', 'KolManage\KolVideoController');
        $router->get('kol-video-download', 'KolManage\KolVideoController@download');
        $router->get('kol-video-upload', 'KolManage\KolVideoUploadController@index');//上传
        $router->post('kol-video-upload', 'KolManage\KolVideoUploadController@upload');//上传
        $router->get('kol-video-template','KolManage\KolVideoUploadController@template');//下载模版

        //kol红人视频产品(sku)
        $router->post('kol-video-detail-ajax', 'KolManage\KolVideoDetailController@ajax');
        $router->get('kol-video-detail-modal', 'KolManage\KolVideoDetailController@modal');
        $router->resource('kol-video-detail', 'KolManage\KolVideoDetailController');
        $router->get('kol-video-detail-download', 'KolManage\KolVideoDetailController@download');
        $router->get('kol-video-detail-upload', 'KolManage\KolVideoDetailUploadController@index');//上传
        $router->post('kol-video-detail-upload', 'KolManage\KolVideoDetailUploadController@upload');//上传
        $router->get('kol-video-detail-template','KolManage\KolVideoDetailUploadController@template');//下载模版

        //kol红人订单
        $router->post('kol-order-ajax', 'KolManage\KolOrderController@ajax');
        $router->get('kol-order-modal', 'KolManage\KolOrderController@modal');
        $router->resource('kol-order', 'KolManage\KolOrderController', ['only' => ['index','edit','update','create']]);
        $router->get('kol-order-download', 'KolManage\KolOrderController@download');
        $router->get('kol-order-upload', 'KolManage\KolOrderUploadController@index');//上传
        $router->post('kol-order-upload', 'KolManage\KolOrderUploadController@upload');//上传
        $router->get('kol-order-template','KolManage\KolOrderUploadController@template');//下载模版

        ////kol红人订单明细
        //$router->post('kol-order-detail-ajax', 'KolManage\KolOrderDetailController@ajax');
        //$router->resource('kol-order-detail', 'KolManage\KolOrderDetailController');
        //$router->get('kol-order-detail-modal', 'KolManage\KolOrderDetailController@modal');
        //$router->get('kol-order-detail-download', 'KolManage\KolOrderDetailController@download');
        //$router->get('kol-order-detail-upload', 'KolManage\KolOrderDetailUploadController@index');//上传
        //$router->post('kol-order-detail-upload', 'KolManage\KolOrderDetailUploadController@upload');//上传
        //$router->get('kol-order-detail-template','KolManage\KolOrderDetailUploadController@template');//下载模版
    });*/


    //用户订单管理模块
    $router->group(['prefix'=>'customer-delivery'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */

        //发货需求(用户订单)
        $router->post('delivery-demand-ajax', 'CustomerDelivery\DeliveryDemandController@ajax');
        $router->get('delivery-demand-modal', 'CustomerDelivery\DeliveryDemandController@modal');
        $router->resource('delivery-demand', 'CustomerDelivery\DeliveryDemandController', ['only' => ['index','edit','update','create']]);
        $router->get('delivery-demand-upload',  'CustomerDelivery\DeliveryDemandUploadController@index');//上传订单
        $router->post('delivery-demand-upload', 'CustomerDelivery\DeliveryDemandUploadController@upload');//上传订单
        $router->get('delivery-demand-template','CustomerDelivery\DeliveryDemandUploadController@template');//下载模版

        //FBA发货
        $router->post('delivery-fba-ajax', 'CustomerDelivery\DeliveryFbaController@ajax');
        $router->get('delivery-fba-modal', 'CustomerDelivery\DeliveryFbaController@modal');
        $router->any('delivery-fba-download', 'CustomerDelivery\DeliveryFbaController@download');
        $router->resource('delivery-fba', 'CustomerDelivery\DeliveryFbaController', ['only' => ['index','edit','update']]);
        $router->get('delivery-fba-upload', 'CustomerDelivery\DeliveryFbaUploadController@index');//上传发货单
        $router->post('delivery-fba-upload', 'CustomerDelivery\DeliveryFbaUploadController@upload');//上传发货单

        //海外发货
        $router->post('delivery-abroad-ajax', 'CustomerDelivery\DeliveryAbroadController@ajax');
        $router->get('delivery-abroad-modal', 'CustomerDelivery\DeliveryAbroadController@modal');
        $router->get('delivery-abroad/{id}/download', 'CustomerDelivery\DeliveryAbroadController@download');
        $router->resource('delivery-abroad', 'CustomerDelivery\DeliveryAbroadController', ['except' => ['destroy']]);
        $router->get('delivery-abroad-upload', 'CustomerDelivery\DeliveryAbroadUploadController@index');
        $router->post('delivery-abroad-upload', 'CustomerDelivery\DeliveryAbroadUploadController@upload');
        $router->get('delivery-abroad-template', 'CustomerDelivery\DeliveryAbroadUploadController@template');//下载模版
        $router->get('delivery-abroad-detail', 'CustomerDelivery\DeliveryAbroadDetailController@index');//国内发货单明细
        $router->get('delivery-abroad-detail-download', 'CustomerDelivery\DeliveryAbroadDetailController@download');//国内发货单明细导出

        //国内发货
        $router->post('delivery-cn-ajax', 'CustomerDelivery\DeliveryCnController@ajax');
        $router->get('delivery-cn-modal', 'CustomerDelivery\DeliveryCnController@modal');
        $router->get('delivery-cn/{id}/download', 'CustomerDelivery\DeliveryCnController@download');
        $router->resource('delivery-cn', 'CustomerDelivery\DeliveryCnController', ['except' => ['destroy']]);
        $router->get('delivery-cn-upload', 'CustomerDelivery\DeliveryCnUploadController@index');
        $router->post('delivery-cn-upload', 'CustomerDelivery\DeliveryCnUploadController@upload');
        $router->get('delivery-cn-template', 'CustomerDelivery\DeliveryCnUploadController@template');//下载模版
        $router->get('delivery-cn-detail', 'CustomerDelivery\DeliveryCnDetailController@index');//国内发货单明细
        $router->get('delivery-cn-detail-download', 'CustomerDelivery\DeliveryCnDetailController@download');//国内发货单明细导出

        //rakuten异常订单
        $router->post('rakuten-order-exception-ajax', 'CustomerDelivery\RakutenOrderExceptionController@ajax');
        $router->get('rakuten-order-exception', 'CustomerDelivery\RakutenOrderExceptionController@index');
        $router->get('rakuten-order-exception-modal', 'CustomerDelivery\RakutenOrderExceptionController@modal');
        $router->get('rakuten-order-exception-download', 'CustomerDelivery\RakutenOrderExceptionController@download');

        //shopify异常订单
        $router->post('shopify-order-exception-ajax', 'CustomerDelivery\ShopifyOrderExceptionController@ajax');
        $router->get('shopify-order-exception', 'CustomerDelivery\ShopifyOrderExceptionController@index');
        $router->get('shopify-order-exception-modal', 'CustomerDelivery\ShopifyOrderExceptionController@modal');
        $router->get('shopify-order-exception-download', 'CustomerDelivery\ShopifyOrderExceptionController@download');

        //查询订单
        $router->post('customer-order-ajax', 'CustomerDelivery\CustomerOrderController@ajax');
        $router->get('customer-order', 'CustomerDelivery\CustomerOrderController@index');
        $router->get('customer-order-modal', 'CustomerDelivery\CustomerOrderController@modal');
        $router->get('customer-order-download', 'CustomerDelivery\CustomerOrderController@download');

        //查询订单明细
        $router->post('customer-order-detail-ajax', 'CustomerDelivery\CustomerOrderDetailController@ajax');
        $router->resource('customer-order-detail', 'CustomerDelivery\CustomerOrderDetailController', ['only' => ['index','update']]);//明细首页
        $router->get('customer-order-detail-modal', 'CustomerDelivery\CustomerOrderDetailController@modal');
        $router->get('customer-order-detail-download', 'CustomerDelivery\CustomerOrderDetailController@download');
        $router->get('customer-order-detail-logistics-download', 'CustomerDelivery\CustomerOrderDetailController@downloadLogistics');
    });

    //平台API
    $router->group(['prefix'=>'api'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        $router->get('amazon/authorize-callback', 'ApiPlat\Amazon\OauthController@oAuth');
        $router->get('amazon/authorized-callback', 'ApiPlat\Amazon\OauthController@oAuthorized');
        $router->get('ziniao/callback', 'ApiPlat\ZiNiao\CallbackController@index');
    });

    $router->group(['prefix'=>'ziniao'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        $router->get('plans-post', 'ZiNiao\PlansPostController@index');
        $router->post('plans-tasks-ajax', 'ZiNiao\PlansTasksController@ajax');
        $router->get('plans-tasks', 'ZiNiao\PlansTasksController@index');
        $router->post('tasks-results-ajax', 'ZiNiao\TasksResultsController@ajax');
        $router->get('tasks-results', 'ZiNiao\TasksResultsController@index');
    });

    //系统API模块
    $router->group(['prefix'=>'api-sys'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //基础数据
        $router->get('basics-country', 'ApiSys\BasicsController@countries');
        //产品
        $router->get('products-sku', 'ApiSys\ProductsController@skus');
        $router->get('products-vague-sku', 'ApiSys\ProductsController@vagueSku');
        $router->get('products-vague-sku-cn', 'ApiSys\ProductsController@vagueSkuCn');
        $router->get('products-sku-supplier', 'ApiSys\ProductsController@skuSupplier');
        $router->get('product-match', 'ApiSys\ProductsController@match');
        $router->get('products-country', 'ApiSys\ProductsController@country');
        $router->get('sku-list', 'ApiSys\ProductsController@skuList');
        $router->get('kol-sku-list', 'ApiSys\ProductsController@kolSkuList');
        //非FBA发货
        $router->get('channels', 'ApiSys\NotFBAController@channels');

        //材料分类（材料品类数据联动）
        $router->get('classify-max', 'ApiSys\BasicsController@classifyMax'); //材料大类
        $router->get('classify-min', 'ApiSys\BasicsController@classifyMin'); //材料小类

        //材料应用（材料应用数据联动）
        $router->get('application-max', 'ApiSys\BasicsController@applicationMax'); //应用大类
        $router->get('application-min', 'ApiSys\BasicsController@applicationMin'); //应用小类

        $router->get('material-supplier-list', 'ApiSys\BasicsController@materialSupplierList'); //材料供应商
    });

    //TOOL-HELPER管理模块
    $router->group(['prefix'=>'tool'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        $router->get('helper', 'Tool\HelperController@tool');
    });

    //亚马逊API管理模块
    $router->group(['prefix'=>'sys-manage'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        $router->resource('order-api', 'SysManage\OrderApiController',  ['except' => ['show']]);
        $router->get('custom-cmd', 'SysManage\CustomCmdController@index');

        $router->resource('test-excel', 'SysManage\TestExcelController');
        $router->get('test-excel-upload', 'SysManage\TestExcelUploadController@index');
        $router->post('test-excel-upload', 'SysManage\TestExcelUploadController@upload');
    });

    //基础资料模块
    $router->group(['prefix'=>'basics'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //基础国家设定
        $router->resource('sys-country', 'Basics\SysCountryController',  ['except' => ['show']]);
        //库存站点和国家设定
        $router->resource('sys-area', 'Basics\SysAreaController',  ['except' => ['show']]);
        $router->resource('sys-i-area', 'Basics\SysIAreaController',  ['except' => ['show']]);
        $router->resource('sys-i-country', 'Basics\SysICountryController',  ['except' => ['show']]);
        $router->resource('sys-l-area', 'Basics\SysLAreaController',  ['except' => ['show']]);

        //Amazon(亚马逊)店铺设定
        $router->resource('amazon-area', 'Basics\AmazonAreaController',  ['except' => ['show']]);//切换API后删除
        $router->resource('amazon-country', 'Basics\AmazonCountryController',  ['except' => ['show']]);
        $router->post('amazon-account-ajax', 'Basics\AmazonAccountController@ajax');
        $router->resource('amazon-account', 'Basics\AmazonAccountController',  ['except' => ['show','destroy']]);

        ///Amazon(亚马逊)账号下属国家
        $router->post('amazon-account-country-ajax', 'Basics\AmazonAccountCountryController@ajax');
        $router->resource('amazon-account-country', 'Basics\AmazonAccountCountryController',  ['except' => ['show','destroy']]);
        $router->get('amazon-account-country-modal', 'Basics\AmazonAccountCountryController@modal');

        //Amazon(亚马逊)广告账号
        $router->post('amazon-account-ads-ajax', 'Basics\AmazonAccountAdsController@ajax');
        $router->resource('amazon-account-ads', 'Basics\AmazonAccountAdsController',  ['except' => ['show','destroy']]);

        //shopify(独立站)店铺设定
        $router->post('shopify-account-ajax', 'Basics\ShopifyAccountController@ajax');
        $router->resource('shopify-account', 'Basics\ShopifyAccountController',  ['except' => ['show','destroy']]);

        //rakuten(乐天)店铺设定
        $router->post('rakuten-account-ajax', 'Basics\RakutenAccountController@ajax');
        $router->resource('rakuten-account', 'Basics\RakutenAccountController',  ['except' => ['show','destroy']]);

        //平台账号设定
        $router->resource('plat-account', 'Basics\SysPlatAccountController',  ['except' => ['show']]);

        //币种设定
        $router->resource('currency', 'Basics\CurrencyController',  ['except' => ['show']]);
        $router->resource('exchange-rate', 'Basics\ExchangeRateController', ['except' => ['show','destroy']]);
        $router->get('exchange-rate-template', 'Basics\ERUploadController@template');//下载模版
        $router->get('exchange-rate-upload', 'Basics\ERUploadController@index');
        $router->post('exchange-rate-upload', 'Basics\ERUploadController@upload');

        $router->resource('express-company', 'Basics\ExpressCompanyController', ['except' => ['show','destroy']]);
        $router->resource('express-channel', 'Basics\ExpressChannelController', ['except' => ['show','destroy']]);
        $router->resource('settlement-method', 'Basics\SettlementMethodController',  ['except' => ['show']]);
        $router->resource('supplier', 'Basics\SupplierController', ['except' => ['destroy']]);
        $router->resource('supplier-m', 'Basics\SupplierMController', ['except' => ['destroy']]);//材料供应商
        $router->resource('transport', 'Basics\TransportController', ['except' => ['show','destroy']]);

        //产品包装箱设置
        $router->resource('packing-box', 'Basics\PackingBoxController',  ['except' => ['show','destroy']]);

        //FBA仓库设定
        $router->resource('fba-warehouse', 'Basics\FbaWarehouseController', ['except' => ['show']]);
        $router->get('fba-warehouse-template', 'Basics\FbaWarehouseUploadController@template');//下载模版
        $router->get('fba-warehouse-upload', 'Basics\FbaWarehouseUploadController@index');
        $router->post('fba-warehouse-upload', 'Basics\FbaWarehouseUploadController@upload');


        /************************/
        //平台设定
        $router->resource('sys-plat', 'Basics\SysPlatController',  ['except' => ['show']]);
        //收货国家
        $router->resource('sys-plat-receiver-country', 'Basics\SysPlatCountryController',  ['except' => ['show']]);
        $router->get('sys-plat-receiver-country-template', 'Basics\SysPlatCountryUploadController@template');//下载模版
        $router->get('sys-plat-receiver-country-upload', 'Basics\SysPlatCountryUploadController@index');
        $router->post('sys-plat-receiver-country-upload', 'Basics\SysPlatCountry@upload');
        /************************/
    });

    //产品管理模块
    $router->group(['prefix'=>'products'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //产品分类
        $router->resource('classify', 'Products\ClassifyController', ['except' => ['show']]);
        //产品分类文件管理
        $router->resource('classify-file', 'Products\ClassifyFileController',  ['except' => ['destroy']]);
        //产品列表
        $router->get('sku-list-download', 'Products\SkuListController@download');//产品导出
        $router->resource('sku-list', 'Products\SkuListController',['only' => ['index','show']]);
        //普通产品
        $router->get('sku-download', 'Products\SkuController@download');//普通产品导出
        $router->resource('sku', 'Products\SkuController');
        $router->get('sku-template', 'Products\SkuUploadController@template');//下载模版
        $router->get('sku-upload', 'Products\SkuUploadController@index');
        $router->post('sku-upload', 'Products\SkuUploadController@upload');

        //产品预览
        $router->post('sku-review-ajax', 'Products\SkuReviewController@ajax');
        $router->resource('sku-review', 'Products\SkuReviewController');

        //sku产品品类（基础）
        $router->get('sku-classify-download', 'Products\SkuClassifyController@download');
        $router->resource('sku-classify', 'Products\SkuClassifyController');
        $router->get('sku-classify-template', 'Products\SkuClassifyUploadController@template');
        $router->get('sku-classify-upload', 'Products\SkuClassifyUploadController@index');
        $router->post('sku-classify-upload', 'Products\SkuClassifyUploadController@upload');

        //sku产品颜色（基础）
        $router->get('sku-color-download', 'Products\SkuColorController@download');
        $router->resource('sku-color', 'Products\SkuColorController');
        $router->get('sku-color-template', 'Products\SkuColorUploadController@template');
        $router->get('sku-color-upload', 'Products\SkuColorUploadController@index');
        $router->post('sku-color-upload', 'Products\SkuColorUploadController@upload');

        //组合产品
        $router->get('mix-sku-download', 'Products\MixSkuController@download');//组合产品导出
        $router->resource('mix-sku', 'Products\MixSkuController');
        $router->get('mix-sku-template', 'Products\MixSkuUploadController@template');//下载模版
        $router->get('mix-sku-upload', 'Products\MixSkuUploadController@index');
        $router->post('mix-sku-upload', 'Products\MixSkuUploadController@upload');
        //产品供应商
        $router->get('sku-supplier-download', 'Products\SkuSupplierController@download');//产品供应商导出
        $router->resource('sku-supplier', 'Products\SkuSupplierController');
        $router->get('sku-supplier-template', 'Products\SkuSupplierUploadController@template');//下载模版
        $router->get('sku-supplier-upload', 'Products\SkuSupplierUploadController@index');
        $router->post('sku-supplier-upload', 'Products\SkuSupplierUploadController@upload');
        //产品包装尺寸&装箱资料
        $router->get('sku-packing-download', 'Products\SkuPackingController@download');//产品包装尺寸导出
        $router->get('sku-packing', 'Products\SkuPackingController@index');
        //产品装箱资料
        $router->get('sku-packing-box-download', 'Products\SkuPackingBoxController@download');//产品装箱资料导出
        $router->get('sku-packing-box', 'Products\SkuPackingBoxController@index');
        $router->get('sku-packing-template', 'Products\SkuPackingUploadController@template');//下载模版
        $router->get('sku-packing-upload', 'Products\SkuPackingUploadController@index');
        $router->post('sku-packing-upload', 'Products\SkuPackingUploadController@upload');

        /*****************平台产品*******************/
        //产品变体归属管理
        $router->get('sku-variant-download', 'Products\SkuVariantController@download');//导出
        $router->resource('sku-variant', 'Products\SkuVariantController');
        $router->get('sku-variant-template', 'Products\SkuVariantUploadController@template');//下载模版
        $router->get('sku-variant-upload', 'Products\SkuVariantUploadController@index');
        $router->post('sku-variant-upload', 'Products\SkuVariantUploadController@upload');

        //amazon产品
        $router->post('amazon-sku-ajax', 'Products\AmazonSkuController@ajax');
        $router->get('amazon-sku-download', 'Products\AmazonSkuController@download');//导出
        $router->resource('amazon-sku', 'Products\AmazonSkuController');
        $router->get('amazon-sku-template', 'Products\AmazonSkuUploadController@template');//下载模版
        $router->get('amazon-sku-upload', 'Products\AmazonSkuUploadController@index');
        $router->post('amazon-sku-upload', 'Products\AmazonSkuUploadController@upload');
        //amazon产品销售
        $router->resource('amazon-sku-ccs', 'Products\AmazonSkuCCSController');
        $router->get('amazon-sku-ccs-template', 'Products\AmazonSkuCCSUploadController@template');//下载模版
        $router->get('amazon-sku-ccs-upload', 'Products\AmazonSkuCCSUploadController@index');
        $router->post('amazon-sku-ccs-upload', 'Products\AmazonSkuCCSUploadController@upload');

        //shopify产品
        $router->post('shopify-sku-ajax', 'Products\ShopifySkuController@ajax');
        $router->get('shopify-sku-download', 'Products\ShopifySkuController@download');//导出
        $router->resource('shopify-sku', 'Products\ShopifySkuController');
        $router->get('shopify-sku-template', 'Products\ShopifySkuUploadController@template');//下载模版
        $router->get('shopify-sku-upload', 'Products\ShopifySkuUploadController@index');
        $router->post('shopify-sku-upload', 'Products\ShopifySkuUploadController@upload');
        //shopify产品销售
        $router->resource('shopify-sku-ccs', 'Products\ShopifySkuCCSController');
        $router->get('shopify-sku-ccs-template', 'Products\ShopifySkuCCSUploadController@template');//下载模版
        $router->get('shopify-sku-ccs-upload', 'Products\ShopifySkuCCSUploadController@index');
        $router->post('shopify-sku-ccs-upload', 'Products\ShopifySkuCCSUploadController@upload');

        //rakuten产品
        $router->post('rakuten-sku-ajax', 'Products\RakutenSkuController@ajax');
        $router->get('rakuten-sku-download', 'Products\RakutenSkuController@download');//导出
        $router->resource('rakuten-sku', 'Products\RakutenSkuController');
        $router->get('rakuten-sku-template', 'Products\RakutenSkuUploadController@template');//下载模版
        $router->get('rakuten-sku-upload', 'Products\RakutenSkuUploadController@index');
        $router->post('rakuten-sku-upload', 'Products\RakutenSkuUploadController@upload');
        //rakuten产品销售
        $router->resource('rakuten-sku-ccs', 'Products\RakutenSkuCCSController');
        $router->get('rakuten-sku-ccs-template', 'Products\RakutenSkuCCSUploadController@template');//下载模版
        $router->get('rakuten-sku-ccs-upload', 'Products\RakutenSkuCCSUploadController@index');
        $router->post('rakuten-sku-ccs-upload', 'Products\RakutenSkuCCSUploadController@upload');

        /*****************材料产品*******************/
        //材料列表
        $router->get('material-list-download', 'Products\MaterialListController@download');//产品导出
        $router->resource('material-list', 'Products\MaterialListController',['only' => ['index','show']]);
        //材料管理
        $router->post('material-ajax', 'Products\MaterialController@ajax');
        $router->get('material-modal', 'Products\MaterialController@modal');
        $router->get('material-download', 'Products\MaterialController@download');//材料产品导出
        $router->resource('material', 'Products\MaterialController');
        $router->get('material-template', 'Products\MaterialUploadController@template');//下载模版
        $router->get('material-upload', 'Products\MaterialUploadController@index');
        $router->post('material-upload', 'Products\MaterialUploadController@upload');

        //材料需求申请
        $router->post('material-apply-ajax', 'Products\MaterialApplyController@ajax');
        $router->get('material-apply-modal', 'Products\MaterialApplyController@modal');
        $router->get('material-apply-download', 'Products\MaterialApplyController@download');
        $router->resource('material-apply', 'Products\MaterialApplyController');

        //材料需求审核
        $router->post('material-audit-ajax', 'Products\MaterialAuditController@ajax');
        $router->get('material-audit-modal', 'Products\MaterialAuditController@modal');
        $router->get('material-audit-download', 'Products\MaterialAuditController@download');
        $router->resource('material-audit', 'Products\MaterialAuditController');

        //材料报表(寻源成功率)
        $router->get('material-report-origin-download', 'Products\MaterialReportOriginController@download');//导出
        $router->resource('material-report-origin', 'Products\MaterialReportOriginController');
        //材料报表(寻源超期率)
        $router->get('material-report-overdue-download', 'Products\MaterialReportOverdueController@download');//导出
        $router->resource('material-report-overdue', 'Products\MaterialReportOverdueController');

        ////材料供应商
        //$router->get('material-supplier-print', 'Products\MaterialSupplierController@printFile');
        //$router->post('material-supplier-ajax', 'Products\MaterialSupplierController@ajax');
        //$router->get('material-supplier-modal', 'Products\MaterialSupplierController@modal');
        //$router->get('material-supplier-download', 'Products\MaterialSupplierController@download');
        //$router->resource('material-supplier', 'Products\MaterialSupplierController');

        //(材料)柜号
        $router->resource('material-container', 'Products\MaterialContainerController');
        $router->get('material-container-template', 'Products\MaterialContainerUploadController@template');
        $router->get('material-container-upload', 'Products\MaterialContainerUploadController@index');
        $router->post('material-container-upload', 'Products\MaterialContainerUploadController@upload');
        $router->get('material-container-download', 'Products\MaterialContainerController@download');

        //(材料)应用品类
        $router->resource('material-application-classify', 'Products\MaterialApplicationClassifyController');
        $router->get('material-application-classify-template', 'Products\MaterialApplicationClassifyUploadController@template');
        $router->get('material-application-classify-upload', 'Products\MaterialApplicationClassifyUploadController@index');
        $router->post('material-application-classify-upload', 'Products\MaterialApplicationClassifyUploadController@upload');
        $router->get('material-application-classify-download', 'Products\MaterialApplicationClassifyController@download');

        //材料大类
        $router->get('material-classify-download', 'Products\MaterialClassifyMaxController@download');
        $router->resource('material-classify-max', 'Products\MaterialClassifyMaxController');

        //材料小类
        $router->get('material-classify-download', 'Products\MaterialClassifyMinController@download');
        $router->resource('material-classify-min', 'Products\MaterialClassifyMinController');
        $router->get('material-classify-min-template', 'Products\MaterialClassifyMinUploadController@template');

        //材料大、小类上传
        $router->get('material-classify-upload', 'Products\MaterialClassifyUploadController@index'); //（共用）材料品类导入
        $router->post('material-classify-upload', 'Products\MaterialClassifyUploadController@upload'); //（共用）材料品类导入
        $router->get('material-classify-template', 'Products\MaterialClassifyUploadController@template');
    });

    //品质报表管理
    $router->group(['prefix'=>'quality'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        $router->post('complaint-ajax', 'Quality\ComplaintController@ajax');
        $router->get('complaint-modal', 'Quality\ComplaintController@modal');
        $router->get('complaint-download', 'Quality\ComplaintController@download');//导出
        $router->resource('complaint', 'Quality\ComplaintController');
        $router->get('complaint-template', 'Quality\ComplaintUploadController@template');//下载模版
        $router->get('complaint-upload', 'Quality\ComplaintUploadController@index');
        $router->post('complaint-upload', 'Quality\ComplaintUploadController@upload');
        //标签管理
        $router->get('tag-download', 'Quality\TagController@download');//导出
        $router->resource('tag', 'Quality\TagController', ['only' => ['index','destroy']]);
        $router->get('tag-template', 'Quality\TagUploadController@template');//下载模版
        $router->get('tag-upload', 'Quality\TagUploadController@index');
        $router->post('tag-upload', 'Quality\TagUploadController@upload');
        //报表
        $router->get('report', 'Quality\ReportController@index');
        $router->get('report-download', 'Quality\ReportController@download');//导出
        $router->get('report-c', 'Quality\ReportClassifyController@index');
        $router->get('report-c-download', 'Quality\ReportClassifyController@download');//导出
        //退款报表
        $router->post('fba-customer-return-ajax', 'Quality\FBACustomerReturnController@ajax');
        $router->get('fba-customer-return-modal', 'Quality\FBACustomerReturnController@modal');
        $router->get('fba-customer-return', 'Quality\FBACustomerReturnController@index');
        $router->get('fba-customer-return-download', 'Quality\FBACustomerReturnController@download');//导出
    });

    //备货管理模块
    $router->group(['prefix'=>'stocking'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //设置备货日期
        $router->resource('set-date', 'Stocking\SetDateController', ['only' => ['index','update']]);
        $router->get('set-date-template', 'Stocking\SetDateUploadController@template');//下载模版
        $router->get('set-date-upload', 'Stocking\SetDateUploadController@index');
        $router->post('set-date-upload', 'Stocking\SetDateUploadController@upload');
        //备货产品
        $router->get('sku-download', 'Stocking\SkuController@download');//备货产品导出
        $router->resource('sku', 'Stocking\SkuController', ['only' => ['index','update']]);
        $router->get('sku-template', 'Stocking\SkuUploadController@template');//下载模版
        $router->get('sku-upload', 'Stocking\SkuUploadController@index');
        $router->post('sku-upload', 'Stocking\SkuUploadController@upload');
        //在途调整
        $router->get('adjust-transit', 'Stocking\AdjustTransitController@index');
        $router->get('adjust-transit-download', 'Stocking\AdjustTransitController@download');
        //备货产品审批
        $router->get('sku-approval-download', 'Stocking\SkuApprovalController@download');//备货审批产品导出
        $router->resource('sku-approval', 'Stocking\SkuApprovalController', ['only' => ['index','update']]);
        //备货审批记录
        $router->get('sku-log-download', 'Stocking\SkuLogController@download');//备货审批记录导出
        $router->resource('sku-log', 'Stocking\SkuLogController', ['only' => ['index','destroy']]);
        //其它备货
        $router->resource('other', 'Stocking\SkuOtherController', ['only' => ['index','update','destroy']]);
        $router->get('other-template', 'Stocking\SkuOtherUploadController@template');//下载模版
        $router->get('other-upload', 'Stocking\SkuOtherUploadController@index');
        $router->post('other-upload', 'Stocking\SkuOtherUploadController@upload');
        //备货单
        $router->get('search-download', 'Stocking\SearchController@download');//备货单导出
        $router->resource('search', 'Stocking\SearchController', ['only' => ['index','destroy']]);
        //备货清单查询
        $router->get('detail-download', 'Stocking\DetailController@download');//备货清单导出
        $router->get('detail', 'Stocking\DetailController@index');

        //EU备货产品
        $router->get('country-sku-download', 'Stocking\CountrySkuController@download');
        $router->resource('country-sku', 'Stocking\CountrySkuController', ['only' => ['index','update']]);
        $router->get('country-sku-template', 'Stocking\CountrySkuUploadController@template');
        $router->get('country-sku-upload', 'Stocking\CountrySkuUploadController@index');
        $router->post('country-sku-upload', 'Stocking\CountrySkuUploadController@upload');

        //temp
        $router->get('country_classify_estimate-download', 'Stocking\CountrySkuController@downloadClassifyEstimate');

        //JP备货产品
        $router->get('jp-sku-download', 'Stocking\JpSkuController@download');
        $router->resource('jp-sku', 'Stocking\JpSkuController', ['only' => ['index','update']]);
        $router->get('jp-sku-template', 'Stocking\JpSkuUploadController@template');
        $router->get('jp-sku-upload', 'Stocking\JpSkuUploadController@index');
        $router->post('jp-sku-upload', 'Stocking\JpSkuUploadController@upload');
    });

    //采购管理模块
    $router->group(['prefix'=>'purchase'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //采购计划
        $router->get('plan', 'Purchase\PlanController@index');
        $router->get('plan-download', 'Purchase\PlanController@download');//下载清单
        $router->get('plan-detail', 'Purchase\PlanDetailController@index');
        $router->get('plan-detail-download', 'Purchase\PlanDetailController@download');
        $router->get('plan-confirm', 'Purchase\PlanConfirmController@confirm');
        $router->post('exe-plan', 'Purchase\PlanConfirmController@exePlan');
        //采购单
        $router->post('order-ajax', 'Purchase\OrderController@ajax');
        $router->get('order-modal', 'Purchase\OrderController@modal');
        $router->resource('order', 'Purchase\OrderController', ['except' => ['create','destroy']]);
        //YJ
        $router->post('yj-order-ajax', 'Purchase\YJOrderController@ajax');
        $router->get('yj-order-modal', 'Purchase\YJOrderController@modal');
        $router->resource('yj-order', 'Purchase\YJOrderController', ['except' => ['create','destroy']]);
        //采购明细
        $router->get('detail', 'Purchase\DetailController@index');
        $router->get('detail-download', 'Purchase\DetailController@download');
        //采购未交货清单
        $router->get('not-delivered', 'Purchase\NotDeliveredController@index');
        $router->get('not-delivered-download', 'Purchase\NotDeliveredController@download');//下载清单
    });

    //提货管理模块
    $router->group(['prefix'=>'shipping'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //提货产品
        $router->get('sku-download', 'Shipping\SkuController@download');
        $router->get('sku', 'Shipping\SkuController@index');
        $router->get('sku-modal', 'Shipping\SkuController@modal');
        $router->post('sku-ajax', 'Shipping\SkuController@ajax');
        $router->get('sku-template', 'Shipping\SkuUploadController@template');//下载模版
        $router->get('sku-upload', 'Shipping\SkuUploadController@index');
        $router->post('sku-upload', 'Shipping\SkuUploadController@upload');
        //提货产品审批
        $router->get('sku-approval-download', 'Shipping\SkuApprovalController@download');
        $router->get('sku-approval', 'Shipping\SkuApprovalController@index');
        //提货产品汇总
        $router->post('total-ajax', 'Shipping\TotalController@ajax');
        $router->get('total', 'Shipping\TotalController@index');
        $router->get('total-download', 'Shipping\TotalController@download');
        $router->get('remarks-template', 'Shipping\RemarksUploadController@template');//下载模版
        $router->get('remarks-upload', 'Shipping\RemarksUploadController@index');
        $router->post('remarks-upload', 'Shipping\RemarksUploadController@upload');
        //提货记录
        $router->get('sku-log', 'Shipping\SkuLogController@index');
        $router->get('sku-log-download', 'Shipping\SkuLogController@download');
        //提货报表
        $router->get('report', 'Shipping\ReportController@index');
        $router->get('report-download', 'Shipping\ReportController@download');//下载报表
    });

    //入库管理模块
    $router->group(['prefix'=>'warehousing'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //采购收货入库
        $router->post('receive-ajax', 'Warehousing\ReceiveController@ajax');
        $router->get('receive/{id}/confirm', 'Warehousing\ReceiveController@confirm');
        $router->get('receive/{id}/out-stock', 'Warehousing\ReceiveController@outStock');
        $router->get('receive/{id}/download', 'Warehousing\ReceiveController@download');
        $router->resource('receive', 'Warehousing\ReceiveController', ['only' => ['index','show']]);
        //收货入库明细
        $router->get('storage-pur-detail', 'Warehousing\StoragePurDetailController@index');
        $router->get('storage-pur-detail-download', 'Warehousing\StoragePurDetailController@download');//下载
        //入库记录
        $router->get('storage-detail', 'Warehousing\StorageDetailController@index');
        $router->get('storage-detail-download', 'Warehousing\StorageDetailController@download');//下载
    });

    //出库管理模块
    $router->group(['prefix'=>'delivery'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //FBA发货单
        $router->post('fba-ajax', 'Delivery\FBAController@ajax');
        $router->post('fba-trace', 'Delivery\FBAController@trace');//上传marks,labels文件modal，含“source_file”
        $router->get('fba-modal', 'Delivery\FBAController@modal');
        $router->get('fba/{id}/download', 'Delivery\FBAController@download');
        $router->get('fba/{id}/download-tracking-no', 'Delivery\FBAController@downloadTrackingNo');
        $router->resource('fba', 'Delivery\FBAController', ['except' => ['create']]);
        $router->get('fba-upload', 'Delivery\FBAUploadController@index');//上传发货单
        $router->post('fba-upload', 'Delivery\FBAUploadController@upload');//上传发货单
        $router->get('fba-logistics-upload', 'Delivery\FBALogisticsUploadController@index');//上传物流信息
        $router->post('fba-logistics-upload', 'Delivery\FBALogisticsUploadController@upload');//上传物流信息
        $router->get('fba-logistics-template', 'Delivery\FBALogisticsUploadController@template');//下载模版
        $router->get('fba-detail', 'Delivery\FBADetailController@index');//FBA发货单明细
        $router->get('fba-detail-download', 'Delivery\FBADetailController@download');//FBA发货单明细导出
        //国内发货-运单号异常列表
        $router->get('fba-track-ex-upload', 'Delivery\FBATrackExUploadController@index');
        $router->get('fba-track-ex-download', 'Delivery\FBATrackExController@download');//导出
        $router->resource('fba-track-ex', 'Delivery\FBATrackExController', ['except' => ['create','update','destroy']]);
        //FBA发货单-到货入仓异常列表
        $router->post('fba-ex-ajax', 'Delivery\FBAExController@ajax');
        $router->resource('fba-ex', 'Delivery\FBAExController', ['except' => ['create','destroy']]);

        ////海外仓发货单
        //$router->post('os-ajax', 'Delivery\OSController@ajax');
        //$router->post('os-trace', 'Delivery\OSController@trace');//上传labels文件modal，含“source_file”
        //$router->get('os-modal', 'Delivery\OSController@modal');
        //$router->get('os/{id}/box', 'Delivery\OSController@box');//导入装箱信息
        //$router->get('os/{id}/download', 'Delivery\OSController@download');
        //$router->resource('os', 'Delivery\OSController', ['except' => ['create','destroy']]);
        //$router->get('os-upload', 'Delivery\OSUploadController@index');
        //$router->post('os-upload', 'Delivery\OSUploadController@upload');
        //$router->get('os-template', 'Delivery\OSUploadController@template');//下载模版
        //$router->get('os-detail', 'Delivery\OSDetailController@index');//海外仓发货单明细
        //$router->get('os-detail-download', 'Delivery\OSDetailController@download');//海外仓发货单明细导出
        ////装箱资料
        //$router->post('os-box-upload', 'Delivery\OSBoxController@upload');
        //$router->get('os-box-template', 'Delivery\OSBoxController@template');//下载模版
        //$router->get('os-box/{id}/download', 'Delivery\OSBoxController@download');
        //$router->resource('os-box', 'Delivery\OSBoxController', ['only' => ['update']]);
        ////多渠道发货
        //$router->post('md-ajax', 'Delivery\MDApplyController@ajax');
        //$router->get('md-download', 'Delivery\MDApplyController@download');
        //$router->get('md-confirm', 'Delivery\MDApplyController@confirm');
        //$router->resource('md-apply', 'Delivery\MDApplyController', ['only' => ['index','update']]);
        //$router->get('md-detail', 'Delivery\MDDetailController@index');//明细
        //$router->get('md-detail-download', 'Delivery\MDDetailController@download');//明细导出
        //$router->get('md-detail-modal', 'Delivery\MDDetailController@modal');
        //$router->post('md-detail-ajax', 'Delivery\MDDetailController@ajax');
        ////海外仓箱唛文件生成
        //$router->get('os-marks-create/{id}/download', 'Delivery\OSMarksCreateController@download');
        //$router->resource('os-marks-create', 'Delivery\OSMarksCreateController', ['only' => ['index','destroy']]);
        //$router->get('os-marks-create-upload', 'Delivery\OSMarksCreateUploadController@index');
        //$router->post('os-marks-create-upload', 'Delivery\OSMarksCreateUploadController@upload');
        //$router->get('os-marks-create-template', 'Delivery\OSMarksCreateUploadController@template');//下载模版

        //发货需求文件,审查
        $router->post('review-ajax', 'Delivery\DeliveryReviewController@ajax');
        $router->post('review-trace', 'Delivery\DeliveryReviewController@trace');//上传paid文件modal，含“source_file”
        $router->get('review-modal', 'Delivery\DeliveryReviewController@modal');
        $router->get('review-download', 'Delivery\DeliveryReviewController@download');
        $router->get('review-upload', 'Delivery\DeliveryReviewUploadController@index');
        $router->post('review-upload', 'Delivery\DeliveryReviewUploadController@upload');
        $router->get('review-template', 'Delivery\DeliveryReviewUploadController@template');//下载模版
        $router->resource('review', 'Delivery\DeliveryReviewController', ['only' => ['index','destroy']]);
    });

    //库存管理模块
    $router->group(['prefix'=>'inventory'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //库存查询-实时库存
        $router->get('timely', 'Inventory\TimelyController@index');
        $router->get('timely-download', 'Inventory\TimelyController@download');
        //库存查询-公共库存
        $router->get('public-cn', 'Inventory\PublicCnController@index');
        $router->get('public-cn-download', 'Inventory\PublicCnController@download');
        //库存查询-站点库存
        $router->get('area-cn', 'Inventory\AreaCnController@index');
        $router->get('area-cn-download', 'Inventory\AreaCnController@download');
        //库存挪用-公共库存挪用
        $router->get('transfer-p', 'Inventory\TransferPController@index');
        $router->get('transfer-p-confirm', 'Inventory\TransferPController@confirm');
        $router->post('transfer-p-ajax', 'Inventory\TransferPController@ajax');
        $router->get('transfer-p-modal', 'Inventory\TransferPController@modal');
        $router->get('transfer-p-upload', 'Inventory\TransferPUploadController@index');//上传
        $router->post('transfer-p-upload', 'Inventory\TransferPUploadController@upload');//上传
        $router->get('transfer-p-template', 'Inventory\TransferPUploadController@template');//下载模版
        //库存挪用-站点库存挪用
        $router->get('transfer-a', 'Inventory\TransferAController@index');
        $router->get('transfer-a-confirm', 'Inventory\TransferAController@confirm');
        $router->post('transfer-a-ajax', 'Inventory\TransferAController@ajax');
        $router->get('transfer-a-upload', 'Inventory\TransferAUploadController@index');//上传
        $router->post('transfer-a-upload', 'Inventory\TransferAUploadController@upload');//上传
        $router->get('transfer-a-template', 'Inventory\TransferAUploadController@template');//下载模版
        //库存挪用-站点库存挪至PUBLIC
        $router->get('transfer-ap', 'Inventory\TransferAPController@index');
        $router->get('transfer-ap-modal', 'Inventory\TransferAPController@modal');
        $router->post('transfer-ap-ajax', 'Inventory\TransferAPController@ajax');
        //库存挪用-库存挪用审核
        $router->get('transfer-audit', 'Inventory\TransferAuditController@index');
        $router->post('transfer-audit-ajax', 'Inventory\TransferAuditController@ajax');
        //库存挪用-库存挪用记录
        $router->get('transfer', 'Inventory\TransferController@index');
        $router->get('transfer-download', 'Inventory\TransferController@download');
        //拆分库存
        $router->get('split', 'Inventory\SplitController@index');
        $router->post('split-ajax', 'Inventory\SplitController@ajax');
        $router->get('split-download', 'Inventory\SplitController@download');
        //组合库存
        $router->get('mix', 'Inventory\MixController@index');
        $router->post('mix-ajax', 'Inventory\MixController@ajax');
        $router->get('mix-download', 'Inventory\MixController@download');
        //库存报表-出入库明细
        $router->get('record', 'Inventory\RecordController@index');
        $router->get('record-download', 'Inventory\RecordController@download');
        //库存报表-库存台账
        $router->get('mix-1', 'Inventory\SController@index');
        //库存报表-库龄
        $router->get('mix-2', 'Inventory\SController@index');
        //实时库存调整
        $router->get('adjust', 'Inventory\AdjustController@index');
        $router->get('adjust-download', 'Inventory\AdjustController@download');
        $router->get('adjust-upload', 'Inventory\AdjustUploadController@index');//上传调整单
        $router->post('adjust-upload', 'Inventory\AdjustUploadController@upload');//上传调整单
        $router->get('adjust-template', 'Inventory\AdjustUploadController@template');//下载模版
        //站点库存调整
        $router->get('adjust-area', 'Inventory\AdjustAreaController@index');
        $router->get('adjust-area-download', 'Inventory\AdjustAreaController@download');
        $router->get('adjust-area-upload', 'Inventory\AdjustAreaUploadController@index');//上传调整单
        $router->post('adjust-area-upload', 'Inventory\AdjustAreaUploadController@upload');//上传调整单
        $router->get('adjust-area-template', 'Inventory\AdjustAreaUploadController@template');//下载模版

        //库存预览
        $router->resource('inventory-review', 'Inventory\InventoryReviewController', ['only' => ['index','update']]);
        $router->get('inventory-review-download', 'Inventory\InventoryReviewController@download');
        $router->get('inventory-review-upload', 'Inventory\InventoryReviewUploadController@index');
        $router->post('inventory-review-upload', 'Inventory\InventoryReviewUploadController@upload');
        $router->get('inventory-review-template', 'Inventory\InventoryReviewUploadController@template');

        //库存总表(SKU)
        $router->get('inventory-sku', 'Inventory\InventoryTotalSkuController@index');
        $router->get('inventory-sku-download', 'Inventory\InventoryTotalSkuController@download');
        //库存总表(站点)
        $router->get('inventory-area', 'Inventory\InventoryTotalAreaController@index');
        $router->get('inventory-area-download', 'Inventory\InventoryTotalAreaController@download');
    });

    //海外仓基础资料管理模块
    $router->group(['prefix'=>'overseas-ba'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //仓库管理
        $router->resource('warehouse-group', 'OverSeasBa\WarehouseGroupController',  ['except' => ['show']]);
        $router->post('w-ajax', 'OverSeasBa\WarehouseController@ajax');
        $router->resource('warehouse', 'OverSeasBa\WarehouseController', ['except' => ['show','destroy']]);
        //box-库存查询-中转
        $router->post('box-in-ajax', 'OverSeasBa\InventoryBoxController@ajax');
        $router->get('box-in', 'OverSeasBa\InventoryBoxController@index');
        $router->get('box-in-download', 'OverSeasBa\InventoryBoxController@download');//下载
        $router->get('box-in-split', 'OverSeasBa\InventoryBoxController@split');//拆箱
        $router->get('box-in-trans', 'OverSeasBa\InventoryBoxController@transfer');//换标
        $router->get('box-in-trans-log', 'OverSeasBa\InventoryBoxTransferLogController@index');//换标记录
        $router->get('box-in-trans-log-download', 'OverSeasBa\InventoryBoxTransferLogController@download');//导出换标记录
        //box库存调整-中转
        $router->get('box-adjust', 'OverSeasBa\BoxAdjustController@index');
        $router->get('box-adjust-download', 'OverSeasBa\BoxAdjustController@download');
        $router->get('box-adjust-upload', 'OverSeasBa\BoxAdjustUploadController@index');//上传调整单
        $router->post('box-adjust-upload', 'OverSeasBa\BoxAdjustUploadController@upload');//上传调整单
        $router->get('box-adjust-template', 'OverSeasBa\BoxAdjustUploadController@template');//下载模版
        //removale-fnSku库存查询-移库
        $router->post('removale-fnsku-in-ajax', 'OverSeasBa\RemovaleInventoryFnSkuController@ajax');
        $router->get('removale-fnsku-in', 'OverSeasBa\RemovaleInventoryFnSkuController@index');
        $router->get('removale-fnsku-in-download', 'OverSeasBa\RemovaleInventoryFnSkuController@download');//下载
        $router->get('removale-fnsku-in-trans', 'OverSeasBa\RemovaleInventoryFnSkuController@transfer');//换标
        //removale-fnSku库存调整
        $router->get('removale-adjust-fnsku', 'OverSeasBa\RemovaleAdjustFnSkuController@index');
        $router->get('removale-adjust-fnsku-download', 'OverSeasBa\RemovaleAdjustFnSkuController@download');
        $router->get('removale-adjust-fnsku-upload', 'OverSeasBa\RemovaleAdjustFnSkuUploadController@index');//上传调整单
        $router->post('removale-adjust-fnsku-upload', 'OverSeasBa\RemovaleAdjustFnSkuUploadController@upload');//上传调整单
        $router->get('removale-adjust-fnsku-template', 'OverSeasBa\RemovaleAdjustFnSkuUploadController@template');//下载模版
        //box-fnSku库存查询-中转
        $router->post('box-fnsku-in-ajax', 'OverSeasBa\BoxInventoryFnSkuController@ajax');
        $router->get('box-fnsku-in', 'OverSeasBa\BoxInventoryFnSkuController@index');
        $router->get('box-fnsku-in-download', 'OverSeasBa\BoxInventoryFnSkuController@download');//下载

        /***************************/
        //dropshipping-inventory (一件代发)
        $router->post('dropshipping-inventory-fnsku-ajax', 'OverSeasBa\DropshippingInventoryFnskuController@ajax');
        $router->get('dropshipping-inventory-fnsku', 'OverSeasBa\DropshippingInventoryFnskuController@index');
        $router->get('dropshipping-inventory-fnsku-download', 'OverSeasBa\DropshippingInventoryFnskuController@download');//下载
        $router->get('dropshipping-inventory-fnsku-migrate', 'OverSeasBa\DropshippingInventoryFnskuController@migrate');//库存转移

        //dropshipping-adjust (代发库存调整)
        $router->get('dropshipping-adjust-fnsku', 'OverSeasBa\DropshippingAdjustFnskuController@index');
        $router->get('dropshipping-adjust-fnsku-download', 'OverSeasBa\DropshippingAdjustFnskuController@download');
        $router->get('dropshipping-adjust-fnsku-upload', 'OverSeasBa\DropshippingAdjustFnskuUploadController@index');//上传调整单
        $router->post('dropshipping-adjust-fnsku-upload', 'OverSeasBa\DropshippingAdjustFnskuUploadController@upload');//上传调整单
        $router->get('dropshipping-adjust-fnsku-template', 'OverSeasBa\DropshippingAdjustFnskuUploadController@template');//下载模版
        /***************************/
    });

    //海外仓入仓管理模块
    $router->group(['prefix'=>'overseas-in'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */

        //国内发货-箱唛文件生成
        $router->get('os-marks-create/{id}/download', 'OverSeasIn\OSMarksCreateController@download');
        $router->resource('os-marks-create', 'OverSeasIn\OSMarksCreateController', ['only' => ['index','destroy']]);
        $router->get('os-marks-create-upload', 'OverSeasIn\OSMarksCreateUploadController@index');
        $router->post('os-marks-create-upload', 'OverSeasIn\OSMarksCreateUploadController@upload');
        $router->get('os-marks-create-template', 'OverSeasIn\OSMarksCreateUploadController@template');//下载模版

        //国内发货-发货单
        $router->post('os-ajax', 'OverSeasIn\OSController@ajax');
        $router->post('os-trace', 'OverSeasIn\OSController@trace');//上传labels文件modal，含“source_file”
        $router->get('os-modal', 'OverSeasIn\OSController@modal');
        $router->get('os/{id}/box', 'OverSeasIn\OSController@box');//导入装箱信息
        $router->get('os/{id}/download', 'OverSeasIn\OSController@download');
        $router->get('os/{id}/download-tracking-no', 'OverSeasIn\OSController@downloadTrackingNo');
        $router->resource('os', 'OverSeasIn\OSController', ['except' => ['create','destroy']]);
        $router->get('os-upload', 'OverSeasIn\OSUploadController@index');
        $router->post('os-upload', 'OverSeasIn\OSUploadController@upload');
        $router->get('os-template', 'OverSeasIn\OSUploadController@template');//下载模版
        $router->get('os-detail', 'OverSeasIn\OSDetailController@index');//明细
        $router->get('os-detail-download', 'OverSeasIn\OSDetailController@download');//明细导出
        //国内发货-运单号异常列表
        $router->get('os-track-ex-upload', 'OverSeasIn\OSTrackExUploadController@index');
        $router->get('os-track-ex-download', 'OverSeasIn\OSTrackExController@download');//导出
        $router->resource('os-track-ex', 'OverSeasIn\OSTrackExController', ['except' => ['create','update','destroy']]);
        //国内发货-装箱资料
        $router->post('os-box-upload', 'OverSeasIn\OSBoxController@upload');
        $router->get('os-box-template', 'OverSeasIn\OSBoxController@template');//下载模版
        $router->get('os-box/{id}/download', 'OverSeasIn\OSBoxController@download');
        $router->resource('os-box', 'OverSeasIn\OSBoxController', ['only' => ['update']]);
        //国内发货-入仓
        $router->post('receive-ajax', 'OverSeasIn\ReceiveController@ajax');
        $router->resource('receive', 'OverSeasIn\ReceiveController', ['except' => ['create','update','destroy']]);
        //国内发货-到货入仓异常列表
        $router->post('receive-ex-ajax', 'OverSeasIn\ReceiveExController@ajax');
        $router->resource('receive-ex', 'OverSeasIn\ReceiveExController', ['except' => ['create','update','destroy']]);

        /*********************************/
        //国内发货(海外仓&一件代发)-发货单
        $router->post('os-dropshipping-ajax', 'OverSeasIn\OSDropshippingController@ajax');
        $router->post('os-dropshipping-trace', 'OverSeasIn\OSDropshippingController@trace');//上传labels文件modal，含“source_file”
        $router->get('os-dropshipping-modal', 'OverSeasIn\OSDropshippingController@modal');
        $router->get('os-dropshipping/{id}/box', 'OverSeasIn\OSDropshippingController@box');//导入装箱信息
        $router->get('os-dropshipping/{id}/download', 'OverSeasIn\OSDropshippingController@download');
        $router->resource('os-dropshipping', 'OverSeasIn\OSDropshippingController', ['except' => ['create','destroy']]);
        $router->get('os-dropshipping-upload', 'OverSeasIn\OSDropshippingUploadController@index');
        $router->post('os-dropshipping-upload', 'OverSeasIn\OSDropshippingUploadController@upload');
        $router->get('os-dropshipping-template', 'OverSeasIn\OSDropshippingUploadController@template');//下载模版
        $router->get('os-dropshipping-detail', 'OverSeasIn\OSDropshippingDetailController@index');//明细
        $router->get('os-dropshipping-detail-download', 'OverSeasIn\OSDropshippingDetailController@download');//明细导出
        //国内发货(海外仓&一件代发)-装箱资料
        $router->post('os-dropshipping-box-upload', 'OverSeasIn\OSDropshippingBoxController@upload');
        $router->get('os-dropshipping-box-template', 'OverSeasIn\OSDropshippingBoxController@template');//下载模版
        $router->get('os-dropshipping-box/{id}/download', 'OverSeasIn\OSDropshippingBoxController@download');
        $router->resource('os-dropshipping-box', 'OverSeasIn\OSDropshippingBoxController', ['only' => ['update']]);
        //国内发货(海外仓&一件代发)-运单号异常列表
        $router->get('os-dropshipping-track-ex-upload', 'OverSeasIn\OSDropshippingTrackExUploadController@index');
        $router->get('os-dropshipping-track-ex-download', 'OverSeasIn\OSDropshippingTrackExController@download');//导出
        $router->resource('os-dropshipping-track-ex', 'OverSeasIn\OSDropshippingTrackExController', ['except' => ['create','update','destroy']]);

        //国内发货(海外仓&一件代发)-入仓
        $router->post('dropshipping-receive-ajax', 'OverSeasIn\DropshippingReceiveController@ajax');
        $router->resource('dropshipping-receive', 'OverSeasIn\DropshippingReceiveController', ['except' => ['create','update','destroy']]);
        //国内发货(海外仓&一件代发)-到货入仓异常列表
        $router->post('dropshipping-receive-ex-ajax', 'OverSeasIn\DropshippingReceiveExController@ajax');
        $router->resource('dropshipping-receive-ex', 'OverSeasIn\DropshippingReceiveExController', ['except' => ['create','update','destroy']]);
        /*********************************/

        //FBA移库 废弃
//        $router->get('removale', 'OverSeasIn\RemovaleController@index');
//        $router->get('removale-download', 'OverSeasIn\RemovaleController@download');
//        $router->get('removale-upload', 'OverSeasIn\RemovaleUploadController@index');//上传移库计划
//        $router->post('removale-upload', 'OverSeasIn\RemovaleUploadController@upload');//上传移库计划
//        $router->get('removale-template', 'OverSeasIn\RemovaleUploadController@template');//下载模版
        //FBA移库明细
        $router->get('removale-detail-download', 'OverSeasIn\RemovaleDetailController@download');
        $router->resource('removale-detail', 'OverSeasIn\RemovaleDetailController', ['only' => ['index','update']]);
        $router->get('removale-detail-upload', 'OverSeasIn\RemovaleDetailUploadController@index');//上传
        $router->post('removale-detail-upload', 'OverSeasIn\RemovaleDetailUploadController@upload');//上传
        $router->get('removale-detail-template', 'OverSeasIn\RemovaleDetailUploadController@template');//下载模版
    });

    //海外仓出仓管理模块
    $router->group(['prefix'=>'overseas-out'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //国内订单出库
        $router->post('fba-ajax', 'OverSeasOut\FBAController@ajax');
        $router->get('fba-modal', 'OverSeasOut\FBAController@modal');
        $router->get('fba/{id}/prepare', 'OverSeasOut\FBAController@prepare');//上传备货信息
        $router->resource('fba', 'OverSeasOut\FBAController', ['except' => ['create','destroy']]);
        $router->get('fba-upload', 'OverSeasOut\FBAUploadController@index');//上传发货单
        $router->post('fba-upload', 'OverSeasOut\FBAUploadController@upload');//上传发货单
        $router->get('fba-logistics-upload', 'OverSeasOut\FBALogisticsUploadController@index');//上传物流信息
        $router->post('fba-logistics-upload', 'OverSeasOut\FBALogisticsUploadController@upload');//上传物流信息
        $router->get('fba-logistics-template', 'OverSeasOut\FBALogisticsUploadController@template');//下载模版
        $router->post('fba-prepare-upload', 'OverSeasOut\FBAPrepareUploadController@upload');//上传备货信息
        $router->get('fba-prepare-template', 'OverSeasOut\FBAPrepareUploadController@template');//下载模版
        $router->get('fba-detail', 'OverSeasOut\FBADetailController@index');//FBA发货单明细
        $router->get('fba-detail-download', 'OverSeasOut\FBADetailController@download');//FBA发货单明细导出
        //国内出货-到货入仓异常列表
        $router->post('fba-ex-ajax', 'OverSeasOut\FBAExController@ajax');
        $router->resource('fba-ex', 'OverSeasOut\FBAExController', ['except' => ['create','destroy']]);
        //FBA移库订单出库
        $router->post('removale-ajax', 'OverSeasOut\RemovaleController@ajax');
        $router->get('removale-modal', 'OverSeasOut\RemovaleController@modal');
        $router->resource('removale', 'OverSeasOut\RemovaleController', ['only' => ['index','show','update']]);
        $router->get('removale-upload', 'OverSeasOut\RemovaleUploadController@index');//上传发货单
        $router->post('removale-upload', 'OverSeasOut\RemovaleUploadController@upload');//上传发货单
        $router->get('removale-logistics-upload', 'OverSeasOut\RemovaleLogisticsUploadController@index');//上传物流信息
        $router->post('removale-logistics-upload', 'OverSeasOut\RemovaleLogisticsUploadController@upload');//上传物流信息
        $router->get('removale-logistics-template', 'OverSeasOut\RemovaleLogisticsUploadController@template');//下载模版
        $router->get('removale-detail', 'OverSeasOut\RemovaleDetailController@index');//FBA发货单明细
        $router->get('removale-detail-download', 'OverSeasOut\RemovaleDetailController@download');//FBA发货单明细导出
        //移库订单-到货入仓异常列表
        $router->post('removale-ex-ajax', 'OverSeasOut\RemovaleExController@ajax');
        $router->resource('removale-ex', 'OverSeasOut\RemovaleExController', ['except' => ['create','destroy']]);
    });

    //返款模块
    $router->group(['prefix'=>'reimburse'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //申请
        $router->post('apply-ajax', 'Reimburse\ApplyController@ajax');
        $router->get('apply-download', 'Reimburse\ApplyController@download');//导出
        $router->resource('apply', 'Reimburse\ApplyController', ['except' => ['show']]);
        $router->resource('apply-paid', 'Reimburse\ApplyPaidController', ['only' => ['update']]);
        $router->get('apply-upload', 'Reimburse\ApplyUploadController@index');
        $router->post('apply-upload', 'Reimburse\ApplyUploadController@upload');
        $router->get('apply-template', 'Reimburse\ApplyUploadController@template');//下载模版
        //审核
        $router->get('audit-download', 'Reimburse\AuditController@download');//导出
        $router->get('audit', 'Reimburse\AuditController@index');
        //支付
        $router->post('paid-ajax', 'Reimburse\ApplyController@ajax');
        $router->post('paid-trace', 'Reimburse\PaidController@trace');//上传paid文件modal，含“source_file”
        $router->get('paid-modal', 'Reimburse\PaidController@modal');
        $router->get('paid-download', 'Reimburse\PaidController@download');//导出
        $router->get('paid', 'Reimburse\PaidController@index');
        $router->get('batch-paid', 'Reimburse\PaidController@paid');//批量支付
        //明细
        $router->get('detail', 'Reimburse\DetailController@index');
        $router->get('detail-download', 'Reimburse\DetailController@download');//导出
    });

    //文件管理
    $router->group(['prefix'=>'file'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //运营文件
        $router->post('operation-file-ajax', 'File\OperationController@ajax');
        $router->get('operation-file-download', 'File\OperationController@download');
        $router->get('operation-file-upload', 'File\OperationUploadController@index');
        $router->post('operation-file-upload', 'File\OperationUploadController@upload');
        $router->resource('operation', 'File\OperationController', ['only' => ['index','destroy']]);

        //亚马逊月报文件
        $router->get('profit-file-download', 'File\ProfitController@download');
        $router->get('profit-file-upload', 'File\ProfitUploadController@index');
        $router->post('profit-file-upload', 'File\ProfitUploadController@upload');
        $router->resource('profit', 'File\ProfitController', ['only' => ['index','destroy']]);

        //乐天月报文件
        $router->get('lt-profit-file-download', 'File\LTProfitController@download');
        $router->get('lt-profit-file-upload', 'File\LTProfitUploadController@index');
        $router->post('lt-profit-file-upload', 'File\LTProfitUploadController@upload');
        $router->resource('lt-profit', 'File\LTProfitController', ['only' => ['index','destroy']]);

        //店铺文件
        $router->get('store', 'File\StoreController@index');
        $router->get('store-file-download', 'File\StoreController@download');
        $router->get('store-file-upload', 'File\StoreUploadController@index');
        $router->post('store-file-upload', 'File\StoreUploadController@upload');
        //紫鸟文件
        $router->post('ziniao-file-ajax', 'File\ZiNiaoController@ajax');
        $router->get('ziniao-file-download', 'File\ZiNiaoController@download');
        $router->resource('ziniao', 'File\ZiNiaoController', ['only' => ['index','destroy']]);
    });

    //运营报表管理
    $router->group(['prefix'=>'operation'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //利润率-公司产品
        $router->get('profit-sku-download', 'Operation\ProfitSkuController@download');//产品利润率导出
        $router->post('profit-sku-ajax', 'Operation\ProfitSkuController@ajax');
        $router->resource('profit-sku', 'Operation\ProfitSkuController', ['only' => ['index','update']]);
        $router->get('profit-sku-upload', 'Operation\ProfitSkuUploadController@index');
        $router->post('profit-sku-upload', 'Operation\ProfitSkuUploadController@upload');
        $router->get('profit-sku-template', 'Operation\ProfitSkuUploadController@template');//下载模版
        //利润率-试算产品
        $router->post('profit-try-ajax', 'Operation\ProfitSkuController@ajax');
        $router->resource('profit-try', 'Operation\ProfitTryController', ['except' => ['show']]);
        //运营数据
        $router->get('ads', 'Operation\ADSController@index');
        $router->get('ads-bc', 'Operation\ADSBCController@index');
        $router->get('ads-vc', 'Operation\ADSVCController@index');
        $router->get('ads-dsp', 'Operation\DSPController@index');
        $router->get('business', 'Operation\BusinessController@index');

        //ads异常
        $router->post('ads-sync-error-ajax', 'Operation\AdsSyncErrorController@ajax');
        $router->resource('ads-sync-error', 'Operation\AdsSyncErrorController', ['only' => ['index','update']]);
        $router->get('ads-sync-error-upload', 'Operation\AdsSyncErrorUploadController@index');
        $router->post('ads-sync-error-upload', 'Operation\AdsSyncErrorUploadController@upload');
        $router->get('ads-sync-error-template', 'Operation\AdsSyncErrorUploadController@template');//下载模版
        $router->get('ads-sync-error-download', 'Operation\AdsSyncErrorController@download');

        //运营数据说明
        $router->get('total-manual', 'Operation\ManualController@index');
        //运营报表
        $router->get('total-download', 'Operation\TotalController@download');//下载报表
        $router->post('total-ajax', 'Operation\TotalController@ajax');
        $router->get('star-modal', 'Operation\TotalController@modal');
        $router->get('total-modal', 'Operation\TotalController@modal');
        $router->get('total', 'Operation\TotalController@index');
        //运营报表核验结果导出
        $router->get('total-check', 'Operation\TotalCheckController@index');
        $router->get('total-check/{id}/download', 'Operation\TotalCheckController@download');
        $router->post('tc-ajax', 'Operation\TotalCheckController@ajax');
    });

    //销售报表
    $router->group(['prefix'=>'sales-report'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //销量报表-日销量
        $router->get('daily-sv', 'SalesReport\DailySVController@index');
        $router->get('daily-sv-download', 'SalesReport\DailySVController@download');//下载报表
        $router->get('daily-cv', 'SalesReport\DailyCVController@index');
        $router->get('daily-cv-download', 'SalesReport\DailyCVController@download');//下载报表
        $router->get('daily-cva', 'SalesReport\DailyCVAController@index');
        $router->get('daily-cvs', 'SalesReport\DailyCVSController@index');
        //销量报表-月销量
        $router->get('monthly-cv', 'SalesReport\MonthlyCVController@index');
        $router->get('monthly-cv-download', 'SalesReport\MonthlyCVController@download');//下载报表
        $router->get('monthly-modal', 'SalesReport\MonthlyCVController@modal');
        $router->post('monthly-ajax', 'SalesReport\MonthlyCVController@ajax');
        $router->get('monthly-ct-download', 'SalesReport\MonthlyCTargetController@download');//导出月目标
        $router->get('monthly-ct-upload', 'SalesReport\MonthlyCTargetController@upload');//导入月目标
        $router->post('monthly-ct-upload', 'SalesReport\MonthlyCTargetController@doUpload');
        $router->get('monthly-ct-template', 'SalesReport\MonthlyCTargetController@template');//下载模板
        //销售额报表-日销售额
        $router->get('daily-sa', 'SalesReport\DailySAController@index');
        $router->get('daily-sa-download', 'SalesReport\DailySAController@download');//下载报表
        //销售额报表-月销售额
        $router->get('monthly-sa', 'SalesReport\MonthlySAController@index');
        $router->get('monthly-sa-download', 'SalesReport\MonthlySAController@download');//下载报表
        //FBA每日库存报表
        $router->get('fba-inventory', 'SalesReport\FBAInventoryController@index');
        $router->get('fba-inventory-download', 'SalesReport\FBAInventoryController@download');
        //FBA每日库存报表
        $router->get('fba-deposit', 'SalesReport\DepositController@index');
        $router->get('fba-deposit-download', 'SalesReport\DepositController@download');
//        //FBA每日到货报表
//        $router->get('fba-daily', 'SalesReport\DailyFBAInventoryController@index');
        //销量导出
        $router->get('sv-export-download', 'SalesReport\SVExportController@download');
        $router->post('sv-export-file', 'SalesReport\SVExportController@exportFile');
        $router->resource('sv-export', 'SalesReport\SVExportController', ['only' => ['index','destroy']]);
        //亚马逊月利润报表核算说明
        $router->get('payment-manual', 'SalesReport\ManualController@index');
        $router->get('payment-miss-sku-download', 'SalesReport\ManualController@missSkuDownload');
        $router->get('payment-pur-price-download', 'SalesReport\ManualController@purPriceDownload');
        $router->get('payment-logistics-avg-price-download', 'SalesReport\ManualController@logisticsAvgPriceDownload');
        $router->get('payment-logistics-balance-download', 'SalesReport\ManualController@logisticsBalanceDownload');
        $router->get('payment-logistics-basics-download', 'SalesReport\ManualController@logisticsBasicsDownload');
        $router->get('payment-ied-upload', 'SalesReport\ManualIedUploadController@index');//导入InventoryEventDetail-EU
        $router->post('payment-ied-upload', 'SalesReport\ManualIedUploadController@upload');
        $router->get('payment-ied-template', 'SalesReport\ManualIedUploadController@template');//下载InventoryEventDetail-EU模板
        //亚马逊月利润报表-明细
        $router->get('payment-detail', 'SalesReport\PaymentDetailController@index');
        $router->get('payment-detail-download', 'SalesReport\PaymentDetailController@download');
        $router->get('payment-detail-jp-modal', 'SalesReport\PaymentDetailController@modal');//forJP
        $router->post('payment-detail-jp-ajax', 'SalesReport\PaymentDetailController@ajax');//forJP

        //亚马逊月利润报表-汇总
        $router->get('payment-summary', 'SalesReport\PaymentSummaryController@index');
        $router->get('payment-summary-download', 'SalesReport\PaymentSummaryController@download');

        /*************/
        //sku日销售量报表
        $router->get('daily-volume', 'SalesReport\DailyVolumeController@index');
        $router->get('daily-volume-download', 'SalesReport\DailyVolumeController@download');

        //sku日销售额报表
        $router->get('daily-amount', 'SalesReport\DailyAmountController@index');
        $router->get('daily-amount-download', 'SalesReport\DailyAmountController@download');

        //品类日销量和库存-站点
        $router->get('daily-cva-new', 'SalesReport\DailyCVANewController@index');
        $router->get('daily-cva-new-download', 'SalesReport\DailyCVANewController@download');

        //品类日销量和库存-SKU
        $router->get('daily-cvs-new', 'SalesReport\DailyCVSNewController@index');
        $router->get('daily-cvs-new-download', 'SalesReport\DailyCVSNewController@download');
        /************/

        //乐天月利润报表核算说明
        $router->get('lt-payment-manual', 'SalesReportLT\ManualController@index');
        $router->get('lt-payment-miss-sku-download', 'SalesReportLT\ManualController@skuDownload');
        $router->get('lt-payment-match-sales-sku-download', 'SalesReportLT\ManualController@salesSkuDownload');
        $router->get('lt-payment-match-refee-sku-download', 'SalesReportLT\ManualController@reFeeSkuDownload');
        $router->get('lt-payment-match-delivery-sku-download', 'SalesReportLT\ManualController@deliverySkuDownload');
        $router->get('lt-payment-logistics-avg-price-download', 'SalesReportLT\ManualController@logisticsAvgPriceDownload');
        $router->get('lt-payment-logistics-order-cn-download', 'SalesReportLT\ManualController@logisticsOrderCNDownload');
        $router->get('lt-payment-logistics-order-os-out-download', 'SalesReportLT\ManualController@logisticsOrderOSOutDownload');
        $router->get('lt-payment-logistics-balance-download', 'SalesReportLT\ManualController@logisticsBalanceDownload');
        $router->get('lt-payment-logistics-basics-download', 'SalesReportLT\ManualController@logisticsBasicsDownload');
        //取消订单的运费
        $router->get('lt-payment-logistics-order-cn-cancel-download', 'SalesReportLT\ManualController@logisticsOrderCNCancelDownload');
        $router->get('lt-payment-logistics-order-os-out-cancel-download', 'SalesReportLT\ManualController@logisticsOrderOSOutCancelDownload');
        $router->get('lt-payment-logistics-basics-cancel-download', 'SalesReportLT\ManualController@logisticsBasicsCancelDownload');
        //乐天月利润报表-明细
        $router->get('lt-payment-detail', 'SalesReportLT\PaymentDetailController@index');
        $router->get('lt-payment-detail-download', 'SalesReportLT\PaymentDetailController@download');
        //乐天月利润报表-汇总
        $router->get('lt-payment-summary', 'SalesReportLT\PaymentSummaryController@index');
        $router->get('lt-payment-summary-download', 'SalesReportLT\PaymentSummaryController@download');
    });

    //财务报表
    $router->group(['prefix'=>'finance-report'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //采购金额统计
        $router->get('pur-amount', 'FinanceReport\PurchaseAmountController@index');
        $router->get('pur-amount-download', 'FinanceReport\PurchaseAmountController@download');
        //发货金额统计
        $router->get('de-amount', 'FinanceReport\DeliveryAmountController@index');
        $router->get('de-amount-download', 'FinanceReport\DeliveryAmountController@download');
    });

    //订单管理
    $router->group(['prefix'=>'order'], function ($router) {
        /* @var \Illuminate\Routing\Router $router */
        //亚马逊订单
        $router->get('amazon', 'Order\AmazonController@index');
        $router->get('amazon-modal', 'Order\AmazonController@modal');
        $router->post('amazon-ajax', 'Order\AmazonController@ajax');
        $router->get('order-detail', 'Order\AmazonItemController@index');//明细
        $router->get('order-detail-download', 'Order\AmazonItemController@download');//明细导出
    });
});
